home *** CD-ROM | disk | FTP | other *** search
/ Macwelt 1 / Macwelt DVD 1.toast / Software für Mac-OS X / Entwickler-Tools / netbeans / modules / ext / djava.jar / koala / dynamicjava / tree / QualifiedName.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-03-14  |  1.5 KB  |  47 lines

  1. package koala.dynamicjava.tree;
  2.  
  3. import java.util.List;
  4. import koala.dynamicjava.tree.visitor.Visitor;
  5.  
  6. public class QualifiedName extends PrimaryExpression implements LeftHandSide {
  7.    public static final String IDENTIFIERS = "identifiers";
  8.    public static final String REPRESENTATION = "representation";
  9.    private List identifiers;
  10.    private String representation;
  11.  
  12.    public String getRepresentation() {
  13.       return this.representation;
  14.    }
  15.  
  16.    public List getIdentifiers() {
  17.       return this.identifiers;
  18.    }
  19.  
  20.    public void setIdentifier(List var1) {
  21.       if (var1 == null) {
  22.          throw new IllegalArgumentException("l == null");
  23.       } else {
  24.          ((Node)this).firePropertyChange("identifiers", this.identifiers, this.identifiers = var1);
  25.          ((Node)this).firePropertyChange("representation", this.representation, this.representation = TreeUtilities.listToName(var1));
  26.       }
  27.    }
  28.  
  29.    public Object acceptVisitor(Visitor var1) {
  30.       return var1.visit(this);
  31.    }
  32.  
  33.    public QualifiedName(List var1) {
  34.       this(var1, (String)null, 0, 0, 0, 0);
  35.    }
  36.  
  37.    public QualifiedName(List var1, String var2, int var3, int var4, int var5, int var6) {
  38.       super(var2, var3, var4, var5, var6);
  39.       if (var1 == null) {
  40.          throw new IllegalArgumentException("ids == null");
  41.       } else {
  42.          this.identifiers = var1;
  43.          this.representation = TreeUtilities.listToName(var1);
  44.       }
  45.    }
  46. }
  47.